package com.yonyou.crm.sys.log.service;

import java.util.*;

import org.springframework.stereotype.Service;

import com.yonyou.crm.common.biz.service.BaseBizServiceImpl;
import com.yonyou.crm.common.page.entity.Page;
import com.yonyou.crm.sys.appmenu.entity.MenuVO;
import com.yonyou.crm.sys.log.entity.*;
import com.yonyou.crm.sys.org.entity.SysOrgVO;
import com.yonyou.iuap.context.InvocationInfoProxy;

@Service
public class SysLogBizServiceImpl extends BaseBizServiceImpl<SysLogVO>{
	
	/**
	 * 列表
	 * @param page
	 * @param paramMap
	 * @return
	 */
	public Page<SysLogVO> getList(Page<SysLogVO> page,Map<String, Object> paramMap) {
		
		Page<SysLogVO> logPage = null;
		if (paramMap != null) {
			paramMap.put("tenantId", new Long(InvocationInfoProxy.getTenantid()));
			logPage = super.pageSelect(SysLogVO.class, page, paramMap.keySet().toArray(new String[0]), paramMap.values().toArray(new Object[0]));
		}
		else {
			logPage = super.pageSelect(SysLogVO.class, page, null, null);
		}
		
		return logPage;
	}
	
	public SysLogVO insertSysLog(SysLogVO sysLog) {
		return super.saveVO(sysLog);
	}
	
	@Override
	protected void beforeSaveVO(SysLogVO vo) {
		// super.beforeSaveVO(vo);
	}
	
	@Override
	protected void afterSaveVO(SysLogVO vo) {
		// super.afterSaveVO(vo);
	}

}	
